<&include file="include/header.tpl" title=$title username=$user_firstname web_site=$web_site page_css="trainer.css"&>

<!--page_text-->
	<div id="main">
    	<div class="box1">
        	<div class="user"><img src="<&$web_site&>/<&$goal.user.thumb_photo&>" /><span><&$goal.user.firstname&> <&$goal.user.lastname&></span></div>
            <h1><&if $goal.gen_goal_id == 0&><&$goal.goal_name&><&else&><&$objConfigModel->getGenGoal($goal.gen_goal_id)&><&/if&><br /><a href="<&$web_site&>/goal/detail/gid/<&$goal.id&>"><i>View goal detail</i></a></h1>
            <table cellpadding="0" cellspacing="0" border="0">
            	<!--<tr><td class="start" colspan="2">Purpose<span><&$goal.purpose&></span></td></tr>-->
                <!--<tr><td class="left">Location<span><&$objConfigModel->getArea($goal.area_id)&></span></td><td>Target<span><&$goal.deadline|date_format:"%m/%d/%Y"&></span></td></tr>-->
                <tr><td class="start" colspan="2">Location<span><&$objConfigModel->getArea($goal.area_id)&></span></tr>
                <tr><td class="start" colspan="2">Looking for<span><&$goal.trainer_types&></span></td><!--<td>Client gender<span><&$objConfigModel->getGender($goal.trainer_gender)&></span></td>--></tr>
            </table>
        </div>
        <div class="box2">
        	<h2>Your bid details</h2>
            <div class="form-box">
            <div class="form-text-box"><i>*</i><label>Subject line</label><input type="text" class="text-box480" id="subject" value="<&$bid.subject&>"/></div>
            <div class="form-text-box"><i>*</i><label>Phone number</label><input type="text" class="text-box480" id="contact_phone" value="<&$bid.contact_phone&>"/></div>
            <!--
            <div class="form-text-box"><i>*</i><label>Length per session</label>
            	<div class="sel" style="z-index:10" id="session_block"><input type="text" class="text-box100" readonly="readonly" style="cursor:default" id="session_name" value="<&$objConfigModel->getSessionType($bid.session_id)&>"/><a href="#" class="next-sel" id="session_list_ctrl"></a><ul class="text-box100 sel-lists-box" style="display:none" id="session_list"><&foreach item=session from=$session_list name=session_list&><li id="<&$session.id&>"><&$session.session_name&></li><&/foreach&></ul></div>
            </div>
            <div class="form-text-box"><i>*</i><label>Number of</label><input type="text" class="text-box80" id="session_cnt" value="<&$bid.session_cnt&>"/></div>
            -->
            <div class="form-text-box"><i>*</i><label>Training type</label>
            	<div class="sel" style="z-index:10" id="trainingservice_block"><input type="text" class="text-box215" readonly="readonly" style="cursor:default" id="trainingservice_name" value="<&$objConfigModel->getTrainingservice($bid.trainingservice_id)&>"/><a href="#" class="next-sel" id="trainingservice_list_ctrl"></a><ul class="text-box215 sel-lists-box" style="display:none" id="trainingservice_list"><&foreach item=trainingservice from=$trainingservice_list name=trainingservice_list&><li id="<&$trainingservice.id&>"><&$trainingservice.trainingservice_name&></li><&/foreach&></ul></div>
            </div>
            <div class="form-text-box"><i>*</i><label># of paid sessions</label><input type="text" class="text-box80" id="session_cnt" value="<&$bid.session_cnt&>"/></div>
            <div class="form-text-box"><i>*</i><label># of free sessions</label><input type="text" class="text-box80" id="free_session_cnt" value="<&$bid.free_session_cnt&>"/></div>
            <div class="form-text-box"><i>*</i><label>Your total price</label><span>$</span><input type="text" class="text-box215" id="bid_price" value="<&$bid.bid_price&>"/></div>
            <p>(If client seects you, this will be the amount fitwow will pay you minus our fee 15%)</p>
            <div class="form-text-box"><i>*</i><label>Message to client</label></div>
            <p>(Focus your relevant experiences on why you can be the best trainer for this client)</p>
            <p><textarea name="" cols="" rows="" id="message"><&$bid.message&></textarea></p>
            <input type="hidden" id="session_id" <&if $bid.session_id&>value="<&$bid.session_id&>"<&else&>value="0"<&/if&> />
            <input type="hidden" id="trainingservice_id" <&if $bid.trainingservice_id&>value="<&$bid.trainingservice_id&>"<&else&>value="0"<&/if&> />
            <input type="hidden" id="gid" value="<&$goal.id&>">
            <input type="hidden" id="bid" value="<&$bid.id&>">
            <p><input type="button" class="submit-this-form"  value="Submit" id="bid_submit"/></p>
            </div>
        </div>
    </div>
<!--page_text_over-->

<&include file="include/footer.tpl" page_js="bid.js"&>